#include<iostream>
#include<vector>
using namespace std;
vector<int>v;
vector<int>uniq;
int main()
{

while (1)
 {
  cout<<"v["<<v.size()<<"]= ";
  int i;
  cin>>i;
  if (i==0) break;
  v.push_back(i);

 }
int k=1;
for (int i=0; i<v.size();i++)
{int x=0;
 for (int m=0; m<uniq.size(); m++)
  {
   if (v[i]==uniq[m])
    {x=1;break}
   }
   if (x=0) {k+=1;uniq[m]=v[i];}
    }
  
for (int m=0; m<uniq.size(); m++)
 cout<<uniq[m]<<" ";
return 0;
}

   
 


